package cn.tannn.ops.customer.controller.dto;


import cn.tannn.jdevelops.result.bean.SerializableBean;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.*;


/**
 * 系统用户设置角色
 *
 * @author tn
 * @date 2021-06-10 16:03
 */
@Schema(description = "系统用户设置角色")
@ToString
@Getter
@Setter
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class RoleUserSetting extends SerializableBean<RoleUserSetting> {
	/**
	 * 用户id集合
	 */
	@Schema(description = "用户id", requiredMode = Schema.RequiredMode.REQUIRED)
	@NotNull(message = "请选择用户")
	private Long userId;

	/**
	 * 角色编号
	 */
	@Schema(description = "角色code", requiredMode = Schema.RequiredMode.REQUIRED)
	@NotBlank(message = "请设置角色")
	private String roleCode;
}
